package com.yunyi.web.controller.phy;

import com.yunyi.common.core.domain.AjaxResult;
import com.yunyi.system.domain.EmrCase;
import com.yunyi.system.service.EmrCaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/emrcase")
public class EmrCaseController {

    @Autowired
    private EmrCaseService caseService;

    @GetMapping("/msg/list")
    public AjaxResult getEmrCaseMsgListEmrCases(String caseIdOrName){
        List<EmrCase> list = caseService.getEmrCaseMsgListEmrCases(caseIdOrName);
        return AjaxResult.success(list);
    }
}
